package com.wva.user.constant;

/**
 *
 * @Author: hong
 * @Date: 2025/1/28 20:25:07
 */
public class LoginConst {
    /**
     * 关于锁定账号：
     * 最近LAST_TIME分钟错误次数>REQUIRE_CAPTCHA_COUNT就要求验证码才能尝试登录
     * 最近LAST_TIME分钟错误次数>LOCK_ACCOUNT_COUNT就锁定LOCK_TIME分钟
     */
    public static final int REQUIRE_CAPTCHA_COUNT = 3;
    public static final int LOCK_ACCOUNT_COUNT = 10;
    public static final int LAST_TIME = 30;
    public static final int LOCK_TIME = 60;
    public static final String TOKEN_NAME = "Token";

    /**
     * 登录令牌有效期，单位分钟
     */
    public static final long TOKEN_TIMEOUT = 3L*60*24*30;
}
